import { Navigate } from "react-router";
import {} from 'react'
import axios from '../axios/axios'
let App=({children})=>{
    let token = localStorage.getItem('refreshToken')
    if(token){
        console.log(222);
        return <Navigate to='/chen/layout/home' />
    }else{
        return <>{children}</>
    }
    
}

export default App